<template>
  <div class="index">
    <!-- 页面的头部组件 周可芯同学-->
    <div class="top">
      <span class="logo">优音乐</span>
      <span class="download">下载APP</span>
    </div>
    <div class="nav">
      <router-link class="link" to="/recommend">推荐</router-link>
      <router-link class="link" to="/hotSong">热歌榜</router-link>
      <router-link class="link" to="/search2">搜索</router-link>
    </div>
  </div>
</template>

<script>
</script>

<style>
.index{
  margin-bottom: 120px;
}
.top {
  width: 100%;
  height: 80px;
  background-color: #ff4b00;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 6;
}
.logo {
  color: #fff;
  font-size: 24px;
  line-height: 60px;
  margin-left: 10px;
  margin-top: 12px;
}
.download {
  width: 100px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  font-size: 18px;
  border-radius: 17px;
  background-color: #fff;
  color: #ff4b00;
  float: right;
  margin-right: 10px;
  margin-top: 12px;
}
.nav {
  width: 100%;
  position: fixed;
  top: 80px;
  left: 0;
  z-index: 6;
  background-color: #fff;
}
.nav .link {
  height: 46px;
  font-size: 20px;
  /* padding: 10px; */
  color: black;
  display: inline-block;
  width: 32%;
  text-align: center;
  line-height: 46px;
}
/* 当页面的url和router-link的to属性值相同时，会自动加上router-link-active这个class */
.nav .link.router-link-active {
  color: #ff4b00;
  text-decoration: underline;
}
.router-view {
  margin-top: 126px;
}
</style>